package com.wjk.cms.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @author WUGN
 * @des
 * @date 2021/9/13 15:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(
        name = "t_order",
        indexes = {
                @Index(columnList = "code", unique = true)
        }
)
public class Order extends BaseEntity {



    @Column(columnDefinition = "varchar(255)  COMMENT '订单编码'")
    private String code;

    @Column(columnDefinition = "int(11)  COMMENT '状态 1已激活 2待发货 3已发货 ' default 0")
    private Integer status=0;

    @Column(columnDefinition = "bigint  COMMENT '卡id'")
    private Long cardId;

    @Column(columnDefinition = "bigint  COMMENT '经销商id'")
    private Long userId;

    @Column(columnDefinition = "varchar(20)  COMMENT '经销商结算金额'")
    private String amount;

    @Column(columnDefinition = "varchar(20)  COMMENT '渠道结算金额'")
    private String amount2;

    @Column(columnDefinition = "varchar(100) default '' COMMENT '运单号'")
    private String trackingNumber;

    @Column(columnDefinition = "varchar(20)  default '' COMMENT '快递公司'")
    private String sender;

    @Column(columnDefinition = "bigint  COMMENT '客户id'")
    private Long customerId;

    @Column(columnDefinition = "varchar(20) COMMENT '发货时间'")
    private String sendTime;

}
